***** Description *****
This replication archive contains all data and code to replicate the figures and
results in "Contact Reduces Immigration-Related Fears for Leftist but Not for 
Rightist Voters" by Jonathan Homola and Margit Tavits.



***** File Overview *****
** R scripts **
HomolaTavits_ContactFears_Analysis_US.R -- R script to generate the main results
for the US Study (Table 2, Figure 1)

HomolaTavits_ContactFears_Analysis_Germany.R -- R script to generate the main results
for the Germany Study (Tables 3-4, Figure 2)

HomolaTavits_ContactFears_Appendix_US.R -- R script to generate the tables and
figures for the US Study in the Appendix.

HomolaTavits_ContactFears_Appendix_Germany.R -- R script to generate the tables
and figures for the Germany Study in the Appendix.

HomolaTavits_ContactFears_interactions.R -- R script to generate the interaction
plots in Figures 1-2 and in the Appendix. The code is originally written by Anton 
Strezhnev ("Two-variable interaction plots in R"). We have made some very minor 
adjustments. See:
http://causalloop.blogspot.com/2013/06/marginal-effect-plots-for-interaction.html


** Data files **
HomolaTavits_ContactFears_US.dta -- The dataset to generate the main results for 
the US Study in the text (Table 2, Figure 1) and the Appendix.

HomolaTavits_ContactFears_Germany.csv -- The dataset to generate the main results
for the Germany Study in the text (Tables 3-4, Figure 2) and the Appendix.


***** Additional Information *****
The following R packages were used to produce the results:
1) foreign version 0.8-67
2) stargazer version 5.2
3) psych version 1.6.9
4) xtable 1.8-2



***** References *****
Homola, Jonathan, and Margit Tavits. "Contact Reduces Immigration-Related Fears 
for Leftist but Not for Rightist Voters." Comparative Political Studies.